<!DOCTYPE html>
<html>

	<head>
		<title>萨瓦迪卡哇哇战队专用</title>
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
	</head>

	<body>
		<div class="container">
			<h1>萨瓦迪卡哇哇战队专用</h1>
			<div class="contact-form">
				<div class="profile-pic">
					<img src="images/logo.png" alt="User Icon" width="140" height="128" />
				</div>
				<div class="signin">
					<form>
						<input type="text" class="user" id="url" placeholder="请输入邀请链接" />
					</form>
				</div>
				<input type="submit" id="loginbtn" value="提交" />
			</div>
		</div><br>

		<div class="footer">
			<p>
				<!--<script type="text/javascript">
					var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
					document.write(unescape("%3Cspan id='cnzz_stat_icon_1257665770'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s4.cnzz.com/z_stat.php%3Fid%3D1257665770%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));
				</script>-->
				<!--<span id="cnzz_stat_icon_1257665770"><a href="http://www.cnzz.com/stat/website.php?web_id=1257665770" target="_blank">站长统计</a><a href="http://www.cnzz.com/stat/website.php?web_id=1257665770" target="_blank"> |  今日IP[6837] | 今日PV[13561] | 昨日IP[15700] |  昨日PV[37848] | </a><a href="http://www.cnzz.com/stat/website.php?web_id=1257665770&amp;method=online" target="_blank">当前在线[333]</a></span>
				<script src=" http://s4.cnzz.com/z_stat.php?id=1257665770&amp;online=1&amp;show=line" type="text/javascript"></script>
				<script src="http://c.cnzz.com/core.php?web_id=1257665770&amp;show=line&amp;online=1&amp;t=z" charset="utf-8" type="text/javascript"></script>
				-->
				<!--尾戒太TM帅了，我就没见过这么帅的-->
			</p>
		</div>
		<script src="jquery-1.6.2.min.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				$("#loginbtn").click(function() {
					$("#loginbtn").html("Loading....  <img src='images/loading.gif' alt='Announcement' /> ");
					$("#loginbtn").attr("disabled", true);
					var url = $("#url").val();
					$.get("do.php?url=" + url, function(data) {
						alert("已刷5个棒棒糖，进游戏查看哈！\n如果未到账，请检查以下几点:\n1.链接是否正确（没输入）\n2.当天已经获得5个棒棒糖\n2.本周已经获得了20个棒棒糖\n如果仍有问题请联系尾戒大帅比！\n");
					});
					//						var a = jQuery.parseJSON(data);
					//						var gg = "\n\n";
					//						switch(a['code']) {
					//							case 0:
					//								alert("尊敬的：" + a['account'] + "[" + a['id'] + "]，您好！\n您的棒棒糖已刷取完毕，请前往游戏查看！\n若未到账，请检查以下两点:\n1.当天已经获得5个棒棒糖\n2.本周已经获得了20个棒棒糖\n" + gg);
					//								break;
					//							case -1:
					//								alert("您还没有输入邀请链接！" + gg);
					//								break;
					//							case -2:
					//								alert("解析邀请链接地址失败！请重试！" + gg);
					//								break;
					//							case -3000:
					//								alert("-3000！刷棒棒糖失败！请联系尾戒大帅比" + gg);
					//								break;
					//							case -4000:
					//								alert(a['msg']);
					//								break;
					//							default:
					//								alert("未知！请重试！若连续出现未知情况，请联系尾戒大帅比" + gg);
					//						}
					//					});
					$("#loginbtn").attr("disabled", false);
				})
			});
		</script>
	</body>

</html>